/*
 * DoctorDetails.java
 *
 * This program demonstrates the usage of a Doctor class, whose objects will be
 * used as a value for the HashMap.
 *
 * 
 */

package com.javacore.day11.lifeline;

/**
 * The Doctor class is created whose object will be used as a value for HashMap.
 * @author 
 */
public class DoctorDetails {
  
  /**
   * Constructor initializing the DoctorDetails object.
   * @param code to initialize the Doctor code
   * @param lastname to initialize the name
   * @param speciality to initialize the speciality
   * @param hours to initialize the hours
   */
  public DoctorDetails(final String code, final String lastname,
      final String speciality, final int hours) {
    
    this.docCode = code;
    this.name = lastname;
    this.specialization = speciality;
    this.hours = hours;
  }
  
  /** Creates a new instance of DoctorDetails */
  public DoctorDetails() {
  }
  
  /**
   * Override the toString() method to display the detail information about a
   * doctor.
   * @return String value for doctor details
   */
  public String toString() {
    return "\nDoctor code = " + docCode + "\nName = " + name +
        "\nSpecialization = " + specialization + "\nAvailability = " + hours;
  }
  
  /** Declare a String variable to store the name of a doctor. */
  String name;
  
  /** Declare a String variable to store the specialization of a doctor. */
  String specialization;
  
  /** Declare an integer variable to store hours. */
  int hours;
  
  /** Declare a String variable to store a DoctorCode. */
  String docCode;
}
